package cn.edu.nbpt.campus_api.mapper.campus;

import cn.edu.nbpt.campus_api.model.campus.entity.Student;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

@Mapper
public interface StudentMapper {
    List<Student> selectStudentList(@Param("name") String name,
                                    @Param("username") String username,
                                    @Param("gender") Integer gender,
                                    @Param("birthdayStartTime") Date birthdayStartTime,
                                    @Param("birthdayEndTime") Date birthdayEndTime,
                                    @Param("entryStartTime") Date entryStartTime,
                                    @Param("entryEndTime") Date entryEndTime,
                                    @Param("graduationStartTime") Date graduationStartTime,
                                    @Param("graduationEndTime") Date graduationEndTime);

    Student selectStudent(Integer id);

    Integer addStudentList(List<Student> students);

    Integer insertStudent(Student student);

    Integer updateStudent(Student student);

    Integer deleteStudent(List<Integer> ids);

    Integer deleteStudentInClass(List<Integer> ids);
}
